package com.fengyi.homefurnish.service.impl;

import com.fengyi.homefurnish.mapper.EmpInfoMapper;
import com.fengyi.homefurnish.pojo.EmpInfo;
import com.fengyi.homefurnish.service.EmpInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpInfoServiceImpl implements EmpInfoService {

    @Autowired
    private EmpInfoMapper empInfoMapper;

    @Override
    public List<EmpInfo> getSeach(Integer dbtId) {
        return empInfoMapper.getSeach(1);
    }

    @Override
    public Integer addStaff(EmpInfo empInfo) {
        return empInfoMapper.addStaff(empInfo);
    }
}
